const http = uni.$u.http
// 商品详情
export const addCart = (data, config = { }) => 
	http.get('/shopping/cart/addCart', Object.assign({ }, config, {
		params: data,
	},)
)

//查询购物车中的数据
export const getCartList = (data, config = { }) =>
	http.get('/shopping/cart/list', Object.assign({ }, config,
		{
			params: data,
		}))

//修改购物车中商品的数量
export const getCartUpdate = (data, config = { }) =>
	http.get('/shopping/cart/update', Object.assign({ }, config,
		{
			params: data,
		}))
		
//删除购物车的商品
export const getDeleted = (data, config = { }) =>
	http.get('/shopping/cart/deletes', Object.assign({ }, config,
		{
			params: data,
		}))